import { createApp } from 'vue'
import { createPinia } from 'pinia'
import VueTypedJs from 'vue-typed-js'

import App from './App.vue'
import router from './router'

import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(VueTypedJs)
app.use(ElementPlus)


// 自动引入图标
Object.keys(ElementPlusIconsVue).forEach((key) => {
  app.component(key, ElementPlusIconsVue[key]);
});

app.mount('#app')
